package com.itfreer.gis.map.style;

import com.alibaba.dubbo.config.annotation.Reference;
import com.itfreer.form.api.BaseRestService;
import com.itfreer.form.api.BaseService;
import com.itfreer.gis.map.style.entity.MapStyleSpriteEntity;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 雪碧图目录Rest服务接口
 */
@RestController
@RequestMapping("/gismapstylesprite")
@Api("雪碧图目录")
public class RestMapStyleSpriteService extends BaseRestService<MapStyleSpriteEntity> {
	
	@Autowired(required = false)
	private MapStyleSpriteService service;

	@Reference(lazy = true, check = false)
	private MapStyleSpriteService dubboService;

	@Override
	protected BaseService<MapStyleSpriteEntity> getService() {
		if (service == null) {
            return dubboService;
        } else {
            return service;
        }
	}
}
